import request from '@/utils/request'

// permissiongroups search 权限组查找
export function getPermissionGroupList(data) {
  return request({
    url: '/permissiongroups/search',
    method: 'post',
    data
  })
}

// permissiongroups add 权限组新增
export function addPermissionGroup(data) {
  return request({
    url: '/permissiongroups/add',
    method: 'post',
    data
  })
}

// permissiongroups delete 权限组删除
export function deletePermissionGroup(params) {
  return request({
    url: '/permissiongroups/delete',
    method: 'post',
    params
  })
}

// permissiongroups update 权限组更新
export function updatePermissionGroup(data) {
  return request({
    url: '/permissiongroups/update',
    method: 'post',
    data
  })
}

// 获取所有权限组
export function getAllPermissionGroup() {
  return request({
    url: '/permissiongroups/get',
    method: 'get'
  })
}

// 获取所有权限组
export function getAllPermission() {
  return request({
    url: '/allpermission/get',
    method: 'get'
  })
}
